package com.kobe.system.mapper;

import com.kobe.system.domain.SysKobeDetail;
import com.kobe.system.domain.SysKobeFinance;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SysKobeFinanceMapper {
    void updateSysKobeFinance(SysKobeFinance SysKobeFinance);

    void addSysKobeFinance(SysKobeFinance sysKobeFinance);

    List<SysKobeFinance> listFinance(SysKobeFinance sysKobeFinance);

    SysKobeFinance getFinanceById(Long financeId);

    List<SysKobeDetail> getDetailById(Long financeId);

    List<SysKobeFinance> getFinanceByProjectId(Long projectId);

    Double getProjectComeMoneyById(Long projectId);

    Double getProjectOutMoneyById(Long projectId);


    void deleteFinanceById(Long projectId);



    void deleteSysKobeDetail(Long financeId);

    void addDetail(SysKobeDetail detail);
}
